Closed Bug 1231728 Opened 9 years ago Closed 9 years ago

Enable [no-dupe-args, no-dupe-keys, no-duplicate-case, no-obj-calls, no-with] rules

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 45
Tracking Status
firefox45 --- fixed

People

(Reporter: Felipe, Assigned: Felipe)

References

Details

Attachments

(3 files)

We can easily enable the following rules everywhere: - no-dupe-args - no-dupe-keys - no-duplicate-case - no-obj-calls - no-with Also, we can enable in browser/ - no-redeclare - consistent-return There are too many hits for these latter two in toolkit but I didn't want to let that block enabling them in browser/ only.
Attached patch Enable rulesSplinter Review
Attachment #8697327 - Flags: review?(dtownsend)
Comment on attachment 8697327 [details] [diff] [review] Enable rules Review of attachment 8697327 [details] [diff] [review]: ----------------------------------------------------------------- r+++ would review again!
Attachment #8697327 - Flags: review?(dtownsend) → review+
Attachment #8697326 - Flags: review?(markh) → review+
Comment on attachment 8697325 [details] [diff] [review] Fixes some eslint errors/warning to enable more rules Review of attachment 8697325 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/base/content/browser.js @@ +328,5 @@ > var backDisabled = backBroadcaster.hasAttribute("disabled"); > var forwardDisabled = forwardBroadcaster.hasAttribute("disabled"); > if (backDisabled == aWebNavigation.canGoBack) { > if (backDisabled) > + backBroadcaster.removeAttribute('disabled'); I don't understand this change.
(In reply to Marco Bonardo [::mak] from comment #5) > Comment on attachment 8697325 [details] [diff] [review] > Fixes some eslint errors/warning to enable more rules > > Review of attachment 8697325 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: browser/base/content/browser.js > @@ +328,5 @@ > > var backDisabled = backBroadcaster.hasAttribute("disabled"); > > var forwardDisabled = forwardBroadcaster.hasAttribute("disabled"); > > if (backDisabled == aWebNavigation.canGoBack) { > > if (backDisabled) > > + backBroadcaster.removeAttribute('disabled'); > > I don't understand this change. sorry, I was testing the double-quotes rules and accidentally saved this in the file
Comment on attachment 8697325 [details] [diff] [review] Fixes some eslint errors/warning to enable more rules Review of attachment 8697325 [details] [diff] [review]: ----------------------------------------------------------------- ok, r=me with the quotes fixed
Attachment #8697325 - Flags: review?(mak77) → review+
Blocks: eslint
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 45
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: